package com.hdoit.ares.logical.cust.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.tennetcn.common.dao.base.impl.SuperService;
import com.hdoit.ares.logical.cust.dao.ICustFootprintDao;
import com.hdoit.ares.logical.cust.model.CustFootprint;
import com.hdoit.ares.logical.cust.service.ICustFootprintService;
import com.hdoit.ares.logical.official.model.Artical;
import com.hdoit.ares.logical.viewmodel.cust.MyFootprint;
/**
 * @author      xieqixiu
 * @email       
 * @createtime  2017年11月27日 23:40:10
 * @comment
 */
@Component
public class CustFootprintServiceImpl extends SuperService<CustFootprint> implements ICustFootprintService{

	private ICustFootprintDao custFootprintDao;
	
	public ICustFootprintDao getCustFootprintDao() {
		return custFootprintDao;
	}

	@Resource
	public void setCustFootprintDao(ICustFootprintDao custFootprintDao) {
		this.custFootprintDao = custFootprintDao;
	}

	@Override
	public int deleteFootprint(String type, String custId) {
		
		return custFootprintDao.deleteFootprint(type, custId);
	}

	@Override
	public List<MyFootprint> selectFootprints(String type, String custId) {
		
		return custFootprintDao.selectFootprints(type, custId);
	}

	@Override
	public List<Artical> selectArticalByType(String type, String custId,Integer pageNum,Integer length) {
		
		return custFootprintDao.selectArticalByType(type, custId, pageNum, length);
	}

	@Override
	public CustFootprint selectCustFootprint(String thingId, String custId) {

		return custFootprintDao.selectCustFootprint(thingId, custId);
	}

	@Override
	public List<Artical> selectAllArtical(String custId,Integer pageNum,Integer length) {

		return custFootprintDao.selectAllArtical(custId,pageNum,length);
	}
	
	
}